package com.label.Dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.label.Model.Do.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper

public interface RoleMapper extends BaseMapper<Role> {

    List<Role> getRoleById(Long id);

    Boolean delRolePermission(String role);

    Boolean saveRolePermission(@Param("role") String role, @Param("permissions") List<String> permissions);

    List<Role> getRoleByUser(Long userId);

}
